package com.tqy.docms.service.impl;

import com.tqy.docms.dao.CpflMapper;
import com.tqy.docms.entity.Cpfl;
import com.tqy.docms.service.CpflService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.annotation.Resources;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Service
public class CpflServiceImpl implements CpflService {
	private final Logger logger = LoggerFactory.getLogger(CpxqServiceImpl.class);
	
    @Resource
    private CpflMapper cpflMapper;
    @Override
    public int addCpfl(Cpfl cpfl) {
        return 0;
    }

    @Override
    public int delCpfl(String nm) {
        return 0;
    }

    @Override
    public int editCpfl(Cpfl cpfl) {
        return 0;
    }

    @Override
    public List<Cpfl> getallCpfl() {
        List<Cpfl> cpflList=cpflMapper.getallCpfl();
        if(cpflList==null) {
    		logger.info("查询所有分类失败");
    	}
    	else {
    		logger.info("查询所有分类成功");
    	}
    	return cpflList;
    }

    @Override
    public Cpfl getoneCpfl(Cpfl cpfl) {
        return null;
    }


}
